package com.qianfeng.ls.web;

import com.qianfeng.ls.pojo.AuthPojo;
import com.qianfeng.ls.service.IAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class AuthController {

    @Autowired
    IAuthService authService;

    /**
     * 查询所有的权限信息
     * @return
     */
    @RequestMapping("queryAuths")
    @ResponseBody
    public List<AuthPojo> queryAuths(){

        return authService.queryAuths();

    }


}
